package com.spring.demo1.eg1;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author vhans
 */
public class ServiceA {
    private ServiceB serviceB;

    @Autowired
    public void setServiceB(ServiceB serviceB) {
        this.serviceB = serviceB;
    }

    public ServiceB getServiceB() {
        return serviceB;
    }
}
